using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

using KmlUtils;

namespace StormModelToKMLDB
{
    public class TrackHistoryPoint : ICoordinate
    {
        #region Private Members
        private Point _location;
        private DateTime _dateTime;
        #endregion

        #region Constructos
        public TrackHistoryPoint(Point location, DateTime dateTime)
        {
            this._location = location;
            this._dateTime = dateTime;
        }
        #endregion

        #region Public Methods / Properties
        public double Lat
        {
            get { return this._location.Lat; }
        }
        public double Lon
        {
            get { return this._location.Lon; }
        }
        public double AltMeters
        {
            get { return this._location.AltMeters; }
        }
        public Point Location
        {
            get { return _location; }
            set { _location = value; }
        }

        public DateTime DateTime
        {
            get { return _dateTime; }
            set { _dateTime = value; }
        }

        public void WriteTo(XmlTextWriter tw)
        {
            this._location.WriteTo(tw);
        }
        #endregion
    }
}
